import api from './index'

// home
export default {
	// 新闻咨询
	getArticleList: (params) => api.get('/wb/wbArticle/list', params),
	getArticleDetail: (id) => api.get('/wb/wbArticle/'+ id),
	// 师傅入驻
	setMasterEnter: (params) => api.post('/wb/wbMasterEnter', params),
	// 师傅信息修改
	putMasterEnter: (params) => api.put('/wb/wbMasterEnter', params),
	// 师傅订单查询
	getMasterOrderList: (params) => api.get('/wb/wbRepairOrder/list', params),
	// 师傅订单查询
	getMasterOrderxcxList: (params) => api.get('/wb/wbRepairOrder/xcxList', params),
	// 查看维修设备更换报价表
	queryRepairReplaceRecords: (id) => api.get('/wb/wbRepairOrder/'+ id),
	// 修改师傅单子状态
	updateMasterOrderStatus: (params) => api.put('/wb/wbRepairApply', params),
	// 修改单子状态
	updateMasterOrder: (params) => api.put('/wb/wbRepairOrder', params),
	// 报修申请
	addRepairApply: (params) => api.post('/wb/wbRepairApply', params),
	// 报修列表
	repairList: (params) => api.get('/wb/wbRepairApply/list', params),
	// 维保申请
	addMaintainApply: (params) => api.post('/wb/title', params),
	// 维保申请状态
	statesMaintainApply: (id) => api.get(`/wb/title/byUser`),
	// 我要维保提示
	statesMaintain: (params) => api.put(`/wb/title`, params),
	// 查询我的维保公司信息
	getMaintainCompanyInfo: (id) => api.get('/wb/wbMaintainCompany/'+id),
	// 维保申请页面模板接口查询
	getTitleTemplate: (id) => api.get('/wb/titleTemplate/listTitleAndText'),
	// 查看维修订单详情
	getRepairOrderDetail: (id) => api.get('/wb/wbRepairOrder/' + id),
	// 查看维修订单列表
	getRepairOrderList: (params) => api.get('/wb/wbRepairOrder/list', params),
	// 支付
	payOrder: (params) => api.post('/wb/wbRepairOrder/appWxPayOrder', params),
	// 单位类型
	entType: (params) => api.get('/system/dict/data/type/ent_type', params),
	// 入驻角色类型
	roleType: (params) => api.get('/system/dict/data/type/position_type',params),
	// 获取审核状态
	apllyStatus: () => api.get('/system/dict/data/type/audit_type'),
	//维修师傅状态
	getbyUser: () => api.get('/wb/wbMasterEnter/byUser'),
	// 查询城市
	getCity: () => api.get('/wb/places/getPlaces'),
	// 查询维修师傅统计
	getMasterCount: () => api.get('/wb/wbRepairOrder/statisticsByUser')
}